/*
 *  $Id: IListData.cs 1222 2010-12-03 13:16:20Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2010 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

using AgateLib.Geometry;

using Nereal.Serialization;

namespace Ragima.UI {
    /// <summary>
    /// Интерфейс, предоставляющий данные для списка.
    /// </summary>
    [TypeResolver(typeof(AttrTypeResolver<IListData>))]
    public interface IListData {
        int ItemCount { get; }
        int GetItemHeight(Widget widget);
        void DrawItem(Widget widget, int itemIndex, Rectangle itemRect);
    }
}
